package lab02.test23;

/**
 * Created by ASUS on 2017/10/28.
 */
import java.util.Scanner;
import java.util.Calendar;
public class Birthday {
    public static void main(String[] args) {
                Calendar time =Calendar.getInstance();
                Scanner scan=new Scanner(System.in);
                int Year,Month,Day;
                System.out.println("年:");
                Year=scan.nextInt();
                System.out.println("月:");
                Month=scan.nextInt();
                System.out.println("日:");
                Day=scan.nextInt();
                time.set(Year, Month-1, Day);
                int Day1=time.get(Calendar.DAY_OF_WEEK);
                System.out.println("星期"+(Day-1));
            }
        }
